import { useRef, useState } from 'react';
import { ProTable } from '@ant-design/pro-components';
import { Button, Modal, message, Form, Input, Select, Typography } from 'antd';
import { history } from 'umi';
import { PageContainer } from '@ant-design/pro-components';
import { primeextendSearch, redispoolDataSearch, primeextendExecute } from '@/services/server';
import type { ParamsType } from '@ant-design/pro-components';
import type { ProColumns } from '@ant-design/pro-table';
import type { PaginationProps, FormInstance } from 'antd';
import type { ActionType } from '@ant-design/pro-components';
import { EnumDealType } from '@/utils/constant';

import styles from './style.less';

const EnumDealStatus = {
  0: '0-待执行',
  1: '1-已完成',
  2: '2-执行中',
};

const SensitizeManageList: React.FC = () => {
  const actionRef = useRef<ActionType>();
  const formRef = useRef<FormInstance>();
  const [confirmLoad, setConfirmLoad] = useState<boolean>(false);
  const [modelCodeVisible, setModelCodeVisible] = useState<boolean>(false);
  const [modalCodeForm] = Form.useForm();

  return (
    <PageContainer>
      <div>
        <Button
          type="primary"
          onClick={() => {
            // history.push(`/tool/delay/editor/add`);
            window.open(
              `${window.origin}${window.location.pathname}#/tool/delay/editor/create`,
              '_blank',
            );
          }}
        >
          活动拼接--包含以下功能
        </Button>
        <Typography.Title level={5}>颜色拾取</Typography.Title>
        <Typography.Title level={5}>图片热区</Typography.Title>
        <Typography.Title level={5}>组件拖拽</Typography.Title>
      </div>
    </PageContainer>
  );
};

export default SensitizeManageList;
